/**
 * Timeline 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/timeline/style';

export const timelineThemeConfig: Partial<ComponentToken> = {
  tailColor: '#f0f0f0',
  tailWidth: 2,
  dotBorderWidth: 2,
  dotBg: '#ffffff',
  itemPaddingBottom: 20,
};

export const getTimelineTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...timelineThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as TimelineComponentToken } from 'antd/es/timeline/style';

